home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import java.awt.Component;
- import java.awt.event.FocusEvent;
- import java.awt.event.FocusListener;
- import java.io.Serializable;
- import java.util.EventObject;
-
- class JMenuItem$MenuItemFocusListener implements FocusListener, Serializable {
- public void focusGained(FocusEvent event) {
- }
-
- public void focusLost(FocusEvent event) {
- JMenuItem mi = (JMenuItem)((EventObject)event).getSource();
- if (((AbstractButton)mi).isFocusPainted()) {
- ((Component)mi).repaint();
- }
-
- }
- }
-